import datetime

from sqlalchemy import Column, Integer, String, create_engine, Time, DateTime
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker


# class DBObj:
# 创建对象的基类:
Base = declarative_base()


# 定义User对象:
class Password(Base):
    # 表的名字:
    __tablename__ = 'passowrd'

    # 表的结构:
    id = Column(Integer, primary_key=True)
    plaintext = Column(String(20))
    ciphertext = Column(String(200))
    time = Column(DateTime, default=datetime.datetime.now)



